﻿#ifndef DEFECT_RECT_H
#define DEFECT_RECT_H
#include "halconcpp/HalconCpp.h"
using namespace HalconCpp;

struct D_R
{
    //换算比例
    int para1;
    //补偿值
    int para2;
    //补偿值
    int para3;
    //标准值
    int para4;
    //上限值
    int para5;
    //下限值
    int para6;
    //平行度补偿值
    int para7;
    //平行度标准值
    int para8;
    //平行度偏差值
    int para9;
    //补偿值
    int para10;
    //标准值
    int para11;
    //上限值
    int para12;
    //下限值
    int para13;
    //平行度补偿值
    int para14;
    //平行度标准值
    int para15;
    //平行度偏差值
    int para16;
    //
    int para17;
    int para18;
    int para19;
	int para20;


	int para21;
	int para22;
	int para23;
	int para24;
	int para25;
	int para26;
	int para27;
	int para28;
	int para29;
	int para30;



};

struct D_R_PLACE
{
    HalconCpp::HTuple x1;
    HalconCpp::HTuple y1;
    HalconCpp::HTuple x2;
    HalconCpp::HTuple y2;
    HalconCpp::HTuple hvCCDHandle;
};

class Defect_Rect
{
public:
    Defect_Rect();
    int D_Rect(HObject Img,HObject &OutImg);
    D_R m_part;
    D_R_PLACE m_part2;
	bool Outer = true;
	bool Inner = true;
	HTuple AreaValue;
};

#endif // DEFECT_RECT_H
